/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


function agregarVol()
            {
                var vol=document.createElement('option');
                var cmb1=document.getElementById("vols1");
                var cmb2=document.getElementById("vols2");
                vol.text = cmb1.options[cmb1.selectedIndex].text;
                cmb2.add(vol,null);
                cmb1.remove(cmb1.selectedIndex);

            }
            function quitarVol()
            {
                var vol=document.createElement('option');
                var cmb1=document.getElementById("vols1");
                var cmb2=document.getElementById("vols2");
                vol.text = cmb2.options[cmb2.selectedIndex].text;
                cmb1.add(vol,null);
                cmb2.remove(cmb2.selectedIndex);

            }
            function agregarMaq()
            {
                var vol=document.createElement('option');
                var cmb1=document.getElementById("maq1");
                var cmb2=document.getElementById("maq2");
                vol.text = cmb1.options[cmb1.selectedIndex].text;
                cmb2.add(vol,null);
                cmb1.remove(cmb1.selectedIndex);

            }
            function quitarMaq()
            {
                var vol=document.createElement('option');
                var cmb1=document.getElementById("maq1");
                var cmb2=document.getElementById("maq2");
                vol.text = cmb2.options[cmb2.selectedIndex].text;
                cmb1.add(vol,null);
                cmb2.remove(cmb2.selectedIndex);

            }
            function enviar()
            {
               var cmb2=document.getElementById("vols2");
               var cmbMaq=document.getElementById("maq2");
               var datos=document.getElementById("vol");
               var datosMaq=document.getElementById("maq");




               for(i=0;i<cmb2.length;i++)
               {
                   datos.value =datos.value +","+  cmb2.options[i].text;


               }

               for(j=0;j<cmbMaq.length;j++)
               {
                   datosMaq.value = datosMaq.value + ","+ cmbMaq.options[j].text;
               }

               

            }
              function enviar2()
            {
               var cmb2=document.getElementById("vols2");

               var datos=document.getElementById("vol");



               for(i=0;i<cmb2.length;i++)
               {
                   datos.value =datos.value +","+  cmb2.options[i].text;


               }





            }
